package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 登录密码
 **/
@Getter
@AllArgsConstructor
public enum LoginPasswordEnum {

    IS_NOT_SET((byte) 0, "未设置"),
    HAS_BEEN_SET((byte) 1, "已设置");
    private Byte status;
    private String desc;

    public static LoginPasswordEnum of(byte value) {
        for (LoginPasswordEnum t : values()) {
            if (t.status == value) {
                return t;
            }
        }
        return null;
    }


}
